cmake_minimum_required(VERSION 3.29)
project(toPythonSo)

set(CMAKE_CXX_STANDARD 17)

find_library(EXAMPLE_LIB NAMES HTFTSTrader PATHS ./)
if(NOT EXAMPLE_LIB)
    message(FATAL_ERROR "example library not found")
endif()

add_library(toPythonSo SHARED library.cpp
        trade.cpp
        trade.h)

target_link_libraries(toPythonSo ${EXAMPLE_LIB})